package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.bestcem.xm.member.enums.MemberTypeEnum;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 示例服务
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/11/29
 */
@Getter
@Setter
public class ListDeliveryMembersByIdsParam {
    /**
     * 企业标识
     */
    @NotNull(message = "企业标识格式异常")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "企业标识格式异常")
    private String orgId;

    /**
     * 用户标识
     */
    @NotNull(message = "用户标识格式异常")
    @Pattern(regexp = RegTypes.OBJECT_ID, message = "用户标识格式异常")
    private String userId;

    /**
     * 联系人类型
     */
    @NotNull(message = "联系人类型不存在")
    private MemberTypeEnum memberTypeEnum;

    @Size(min = 1, message = "联系人id列表不能为空")
    private List<@Pattern(regexp = RegTypes.OBJECT_ID, message = "联系人id格式错误") String> memberIds;

    /**
     * 是否为超级管理员; 1: 是
     */
    private Integer superRole;

    /**
     * 高级管理员权限
     */
    private Integer isSenior;
}
